package cn.wangxl.group.rpc.register;

import cn.wangxl.group.rpc.protocol.Protocol;

import java.net.UnknownHostException;

/**
 * @Description ServiceRegister
 * @Classname ServiceRegister
 * @Created by wangxl
 * @Date 2020/9/22 22:37
 */
public interface ServiceRegister {

    void register(ServiceObject serviceObject, Protocol protocol,int port) throws Exception;

    ServiceObject getServiceObject(String name);
}
